package com.nipun.neural.objects.networks;

import java.util.List;

import com.nipun.graph.objects.GraphImpl;
import com.nipun.neural.objects.Network;


public class NetworkImpl extends GraphImpl implements Network {

	private List firingOrder;
	
	private List inputNodes;
	
	private List outputNodes;
	
	private List memorynodes;
	
	public void setFiringOrder(List order) {
		firingOrder = order;
	}

	public void setInputNodes(List inputs) {
		inputNodes = inputs;
	}

	public void setOutputNodes(List outputs) {
		outputNodes = outputs;
	}

	public Object[] getFiringOrder() {
		return firingOrder.toArray();
	}

	public Object[] getInputNodes() {
		return inputNodes.toArray();
	}

	public Object[] getOutputNodes() {
		return outputNodes.toArray();
	}

	public Object[] getMemoryNodes() {
		if(memorynodes!=null){
			return memorynodes.toArray();
		}else{
			return null;
		}
	}

	public void setMemoryNodes(List memoryNodes) {
		this.memorynodes = memoryNodes;
	}

}
